package cn.laikyy.common.page;

import java.io.Serializable;
/**
 * @Description: 排序
 * @author laikyy
 * @date 2018/1/9 22:34
 */
public class Sort implements Serializable {
    /** 升序*/
    private static  final String  AES = "AES";
    /** 降序*/
    private static  final String  DESC = "DESC";

    /** 排序列名 */
    private String field;
    /**排序类型*/
    private String type;

    /**
     * 构造函数，初始赋值
     */
    public Sort(){
        this.field = "";
        this.type = DESC;
    }

    /**
     * 构造函数，初始赋值
     */
    public Sort(String field,String type){
        this.field = field;
        this.type = type;
    }

    /**
     * 获得排序字段
     * @return field
     */
    public String getField() {
        return field;
    }

    /**
     * 设置排序字段
     * @param field
     */
    public void setField(String field) {
        this.field = field;
    }

    /**
     * 获得排序类型
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置排序类型
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }
}
